using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;

namespace mebc.tests.toDictionary
{
    public class ToDictionaryMainboard : Board
    {
        public ToDictionaryMainboard()
        {
            //var split = new FuncPart<string, IEnumerable<string>>(config => config.Split(';'));
            var split = new Split_into_assignments();
            var trans = new Transform_assignments_into_KV();
            var build = new Build_dictionary();

            RedirectInputTo<string>(split);

            WireFromTo<IEnumerable<string>>(split, trans);
            WireFromTo<IEnumerable<KeyValuePair<string,string>>>(trans, build);

            CaptureOutputFrom<Dictionary<string, string>>(build);
        }
    }
}